<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>uploadfile plugin of jQuery</title>
</head>
<body>

<form action="url" method="post" enctype="multipart/form-data">
	<p><input type="file" /></p>
	<p><input type="submit" /></p>
</form>


<script src="../scripts/jquery-1.6.4.js"></script>
<script src="../scripts/jquery.pencil.uploadfile.js"></script>
<script>
$("input[type=file]").uploadfile({
	url: "http://www.baidu.com",
	success: function(){}
});
</script>
</body>
</html>